package com.forevershine.business.persistent.impl;

import org.apache.ibatis.session.SqlSession;

import com.forevershine.business.model.BodyFabric;
import com.forevershine.business.persistent.BodyFabricDao;
import com.forevershine.business.persistent.IDataAccessor;

public class BodyFabricDaoImpl implements BodyFabricDao {

	


	@Override
	public BodyFabric loadBodyFabric(IDataAccessor dataAccessor, int taskId) {
		SqlSession session = dataAccessor.getSession();
		return (BodyFabric)session.selectOne("loadBodyFabric" , taskId);
		
	}
	
	
	@Override
	public void insertBodyFabric(IDataAccessor dataAccessor, BodyFabric bodyFabric) {
		SqlSession session = dataAccessor.getSession();
		session.insert("insertBodyFabric" , bodyFabric);
		session.commit();
		
	}


}
